﻿using Autofac;
using Jinjia.Core;
using Jinjia.Core.BaseInfrastructure;
using Jinjia.Core.SignInterface;

namespace Jinjia.Approve.ScheduleJobAPI.DI
{
    public class ApiModule : InjectionModule
    {
        protected override void Load(ContainerBuilder builder)
        {
            base.Load(builder);
            builder.InjectionAllCoreDefaultCore();
            builder.InjectionAllBaseInfrastructureDefaultCore();
            builder.RegisterAssemblyTypes(typeof(ApiModule).Assembly)
                .InstancePerLifetimeScope()
                .AsImplementedInterfaces()
                .PropertiesAutowired();
        }
    }
}